import {api} from "@/utils/request";



// 分页查询所有、带上条件

export const getCompanyListByPage =
    (pageNum:number , pageSize:number , queryDto:any) => {
    return api({
        url: "/recruit/company/findByPage/" + pageNum + "/" + pageSize,
        method: 'get',
        params: queryDto
    })
}

export const getAll =
    () => {
        return api({
            url: "/recruit/company/getAll",
            method: 'get',
        })
    }


// 新增用户
export const addCompany = (data:any) => {
    return api({
        url: "/recruit/company/addCompany",
        method: "post",
        data: data
    })
}
// 修改用户
export const updateCompany = (data:any) => {
    return api({
        url: "/recruit/company/updateCompany",
        method: "put",
        data: data
    })
}


// //    根据id删除用户
export const deleteCompany = (id:any) => {
    return api({
        url: "/recruit/company/deleteCompany/"+id,
        method: "delete",
    })
}